package com.test.qpbgboot.show.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class TagSaveParam {
    @ApiModelProperty(value = "标签id")
    private Long id;
    @ApiModelProperty(value = "标签类型", required = true)
    @NotBlank(message = "标签类型不能为空")
    private String type;
    @ApiModelProperty(value = "标签名字", required = true)
    @NotBlank(message = "标签名字不能为空")
    private String label;
    @ApiModelProperty(value = "父标签id")
    private Long parentId;
}
